package com.manager.kudian.system.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OrderInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "order_info")
public class OrderInfo implements java.io.Serializable {

	// Fields

	private Integer orderId;
	private String orderSn;
	private Integer userId;
	private Short orderStatus;
	private Short shippingStatus;
	private Short payStatus;
	private Short returnedStatus;
	private String consignee;
	private Integer province;
	private Integer city;
	private Integer district;
	private Short sex;
	private String address;
	private String zipcode;
	private String tel;
	private String mobile;
	private String email;
	private String bestTime;
	private String postscript;
	private Double goodsAmount;
	private Double shippingFee;
	private Double orderAmount;
	private Timestamp addTime;
	private Timestamp confirmTime;
	private Timestamp payTime;
	private Timestamp shippingTime;
	private Timestamp receivingTime;
	private String payNote;
	private Integer sellerId;
	private Double firtDiscountFee;
	private Double fmDiscountFee;
	private Double shippingDiscountFee;
	private Double holidayDiscountFee;
	private Double bonus;
	private Integer bonusId;

	// Constructors

	/** default constructor */
	public OrderInfo() {
	}

	/** minimal constructor */
	public OrderInfo(String orderSn, Integer userId, Short orderStatus,
			Short shippingStatus, Short payStatus, String consignee,
			Integer province, Integer city, Integer district, Short sex,
			String address, String mobile, String bestTime, Double goodsAmount,
			Double shippingFee, Double orderAmount, Timestamp addTime,
			Timestamp confirmTime, Timestamp payTime, Timestamp shippingTime,
			String payNote, Integer sellerId, Double firtDiscountFee,
			Double fmDiscountFee, Double shippingDiscountFee,
			Double holidayDiscountFee, Double bonus, Integer bonusId) {
		this.orderSn = orderSn;
		this.userId = userId;
		this.orderStatus = orderStatus;
		this.shippingStatus = shippingStatus;
		this.payStatus = payStatus;
		this.consignee = consignee;
		this.province = province;
		this.city = city;
		this.district = district;
		this.sex = sex;
		this.address = address;
		this.mobile = mobile;
		this.bestTime = bestTime;
		this.goodsAmount = goodsAmount;
		this.shippingFee = shippingFee;
		this.orderAmount = orderAmount;
		this.addTime = addTime;
		this.confirmTime = confirmTime;
		this.payTime = payTime;
		this.shippingTime = shippingTime;
		this.payNote = payNote;
		this.sellerId = sellerId;
		this.firtDiscountFee = firtDiscountFee;
		this.fmDiscountFee = fmDiscountFee;
		this.shippingDiscountFee = shippingDiscountFee;
		this.holidayDiscountFee = holidayDiscountFee;
		this.bonus = bonus;
		this.bonusId = bonusId;
	}

	/** full constructor */
	public OrderInfo(String orderSn, Integer userId, Short orderStatus,
			Short shippingStatus, Short payStatus, String consignee,
			Integer province, Integer city, Integer district, Short sex,
			String address, String zipcode, String tel, String mobile,
			String email, String bestTime, String postscript,
			Double goodsAmount, Double shippingFee, Double orderAmount,
			Timestamp addTime, Timestamp confirmTime, Timestamp payTime,
			Timestamp shippingTime, String payNote, Integer sellerId,
			Double firtDiscountFee, Double fmDiscountFee,
			Double shippingDiscountFee, Double holidayDiscountFee,
			Double bonus, Integer bonusId) {
		this.orderSn = orderSn;
		this.userId = userId;
		this.orderStatus = orderStatus;
		this.shippingStatus = shippingStatus;
		this.payStatus = payStatus;
		this.consignee = consignee;
		this.province = province;
		this.city = city;
		this.district = district;
		this.sex = sex;
		this.address = address;
		this.zipcode = zipcode;
		this.tel = tel;
		this.mobile = mobile;
		this.email = email;
		this.bestTime = bestTime;
		this.postscript = postscript;
		this.goodsAmount = goodsAmount;
		this.shippingFee = shippingFee;
		this.orderAmount = orderAmount;
		this.addTime = addTime;
		this.confirmTime = confirmTime;
		this.payTime = payTime;
		this.shippingTime = shippingTime;
		this.payNote = payNote;
		this.sellerId = sellerId;
		this.firtDiscountFee = firtDiscountFee;
		this.fmDiscountFee = fmDiscountFee;
		this.shippingDiscountFee = shippingDiscountFee;
		this.holidayDiscountFee = holidayDiscountFee;
		this.bonus = bonus;
		this.bonusId = bonusId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "order_id", unique = true, nullable = false)
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "order_sn", nullable = false, length = 20)
	public String getOrderSn() {
		return this.orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "order_status", nullable = false)
	public Short getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(Short orderStatus) {
		this.orderStatus = orderStatus;
	}

	@Column(name = "shipping_status", nullable = false)
	public Short getShippingStatus() {
		return this.shippingStatus;
	}

	public void setShippingStatus(Short shippingStatus) {
		this.shippingStatus = shippingStatus;
	}

	@Column(name = "pay_status", nullable = false)
	public Short getPayStatus() {
		return this.payStatus;
	}

	public void setPayStatus(Short payStatus) {
		this.payStatus = payStatus;
	}

	@Column(name = "returned_status")
	public Short getReturnedStatus() {
		return returnedStatus;
	}

	public void setReturnedStatus(Short returnedStatus) {
		this.returnedStatus = returnedStatus;
	}

	@Column(name = "consignee", nullable = false, length = 60)
	public String getConsignee() {
		return this.consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}


	@Column(name = "province", nullable = false)
	public Integer getProvince() {
		return this.province;
	}

	public void setProvince(Integer province) {
		this.province = province;
	}

	@Column(name = "city", nullable = false)
	public Integer getCity() {
		return this.city;
	}

	public void setCity(Integer city) {
		this.city = city;
	}

	@Column(name = "district", nullable = false)
	public Integer getDistrict() {
		return this.district;
	}

	public void setDistrict(Integer district) {
		this.district = district;
	}

	@Column(name = "sex", nullable = false)
	public Short getSex() {
		return this.sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	@Column(name = "address", nullable = false)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "zipcode", length = 60)
	public String getZipcode() {
		return this.zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	@Column(name = "tel", length = 60)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "mobile", nullable = false, length = 60)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "email", length = 60)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "best_time", nullable = false, length = 120)
	public String getBestTime() {
		return this.bestTime;
	}

	public void setBestTime(String bestTime) {
		this.bestTime = bestTime;
	}

	@Column(name = "postscript")
	public String getPostscript() {
		return this.postscript;
	}

	public void setPostscript(String postscript) {
		this.postscript = postscript;
	}

	@Column(name = "goods_amount", nullable = false, precision = 10)
	public Double getGoodsAmount() {
		return this.goodsAmount;
	}

	public void setGoodsAmount(Double goodsAmount) {
		this.goodsAmount = goodsAmount;
	}

	@Column(name = "shipping_fee", nullable = false, precision = 10)
	public Double getShippingFee() {
		return this.shippingFee;
	}

	public void setShippingFee(Double shippingFee) {
		this.shippingFee = shippingFee;
	}

	@Column(name = "order_amount", nullable = false, precision = 10)
	public Double getOrderAmount() {
		return this.orderAmount;
	}

	public void setOrderAmount(Double orderAmount) {
		this.orderAmount = orderAmount;
	}

	@Column(name = "add_time", nullable = false, length = 19)
	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	@Column(name = "confirm_time", nullable = false, length = 19)
	public Timestamp getConfirmTime() {
		return this.confirmTime;
	}

	public void setConfirmTime(Timestamp confirmTime) {
		this.confirmTime = confirmTime;
	}

	@Column(name = "pay_time", nullable = false, length = 19)
	public Timestamp getPayTime() {
		return this.payTime;
	}

	public void setPayTime(Timestamp payTime) {
		this.payTime = payTime;
	}

	@Column(name = "shipping_time", nullable = false, length = 19)
	public Timestamp getShippingTime() {
		return this.shippingTime;
	}

	public void setShippingTime(Timestamp shippingTime) {
		this.shippingTime = shippingTime;
	}

	@Column(name = "receiving_time", length = 19)
	public Timestamp getReceivingTime() {
		return receivingTime;
	}

	public void setReceivingTime(Timestamp receivingTime) {
		this.receivingTime = receivingTime;
	}

	@Column(name = "pay_note", nullable = false)
	public String getPayNote() {
		return this.payNote;
	}

	public void setPayNote(String payNote) {
		this.payNote = payNote;
	}

	@Column(name = "seller_id", nullable = false)
	public Integer getSellerId() {
		return this.sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

	@Column(name = "firt_discount_fee", nullable = false, precision = 10)
	public Double getFirtDiscountFee() {
		return this.firtDiscountFee;
	}

	public void setFirtDiscountFee(Double firtDiscountFee) {
		this.firtDiscountFee = firtDiscountFee;
	}

	@Column(name = "fm_discount_fee", nullable = false, precision = 10)
	public Double getFmDiscountFee() {
		return this.fmDiscountFee;
	}

	public void setFmDiscountFee(Double fmDiscountFee) {
		this.fmDiscountFee = fmDiscountFee;
	}

	@Column(name = "shipping_discount_fee", nullable = false, precision = 10)
	public Double getShippingDiscountFee() {
		return this.shippingDiscountFee;
	}

	public void setShippingDiscountFee(Double shippingDiscountFee) {
		this.shippingDiscountFee = shippingDiscountFee;
	}

	@Column(name = "holiday_discount_fee", nullable = false, precision = 10)
	public Double getHolidayDiscountFee() {
		return this.holidayDiscountFee;
	}

	public void setHolidayDiscountFee(Double holidayDiscountFee) {
		this.holidayDiscountFee = holidayDiscountFee;
	}

	@Column(name = "bonus", nullable = false, precision = 10)
	public Double getBonus() {
		return this.bonus;
	}

	public void setBonus(Double bonus) {
		this.bonus = bonus;
	}

	@Column(name = "bonus_id", nullable = false)
	public Integer getBonusId() {
		return this.bonusId;
	}

	public void setBonusId(Integer bonusId) {
		this.bonusId = bonusId;
	}
}